package com.mrguo.entity.goods;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import javax.persistence.*;

@Data
@Table(name = "bsd_goods_price")
public class GoodsPrice {
    /**
     * sku_id
     */
    @Id
    @Column(name = "sku_id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long skuId;

    /**
     * 单位Id
     */
    @Id
    @Column(name = "unit_id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long unitId;

    /**
     * 价格json
     */
    private String price;
}